<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <!-- <van-swipe-item class="swiper-item">
        <img src="../assets/img/b1.jpg" alt />
      </van-swipe-item>
      <van-swipe-item class="swiper-item">
        <img src="../assets/img/b2.jpg" alt />
      </van-swipe-item>
      <van-swipe-item class="swiper-item">
        <img src="../assets/img/b3.jpg" alt />
      </van-swipe-item> -->

      <van-swipe-item v-for="(item,index) in list" :key="index" class="swiper-item">
        <img :src="item" alt />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style lang="less" scoped>
.swiper-item {
  img {
    width: 100%;
  }
}
</style>